package com.snack.shop.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 提交反馈请求
 */
@Data
@Schema(description = "提交反馈请求")
public class FeedbackSubmitRequest {

    @Schema(description = "反馈类型：1-商品问题，2-配送问题，3-服务问题，4-系统问题，5-功能建议，6-其他", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "反馈类型不能为空")
    private Integer type;

    @Schema(description = "反馈内容（20-1000字）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "反馈内容不能为空")
    private String content;

    @Schema(description = "图片列表（最多9张）")
    private List<String> images;

    @Schema(description = "联系方式（手机号/微信号）")
    private String contact;

    @Schema(description = "关联订单ID")
    private Long orderId;

    @Schema(description = "关联订单号")
    private String orderNo;
}
